home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MPW_TOOL / TOOLS / TOOLS_WI / BYACC__ / MAKEFILE.UNI < prev    next >
Text File  |  1989-11-19  |  3KB  |  126 lines

  1. DEST          = .
  2.  
  3. HDRS          = action.h \
  4.         defs.h \
  5.         dep.h \
  6.         files.h \
  7.         gram.h \
  8.         new.h \
  9.         state.h \
  10.         symtab.h \
  11.         text.h \
  12.         tokens.h
  13.  
  14. LDFLAGS          =
  15.  
  16. LIBS          =
  17.  
  18. LINKER          = cc
  19.  
  20. MAKEFILE      = Makefile
  21.  
  22. OBJS          = closure.o \
  23.         conflicts.o \
  24.         derives.o \
  25.         error.o \
  26.         files.o \
  27.         genstates.o \
  28.         gram.o \
  29.         lalr.o \
  30.         main.o \
  31.         mkpar.o \
  32.         new.o \
  33.         nullable.o \
  34.         optim.o \
  35.         output.o \
  36.         print.o \
  37.         reader.o \
  38.         symtab.o \
  39.         text.o \
  40.         warshall.o \
  41.         yylex.o
  42.  
  43. PRINT          = pr
  44.  
  45. PROGRAM          = byacc
  46.  
  47. SRCS          = closure.c \
  48.         conflicts.c \
  49.         derives.c \
  50.         error.c \
  51.         files.c \
  52.         genstates.c \
  53.         gram.c \
  54.         lalr.c \
  55.         main.c \
  56.         mkpar.c \
  57.         new.c \
  58.         nullable.c \
  59.         optim.c \
  60.         output.c \
  61.         print.c \
  62.         reader.c \
  63.         symtab.c \
  64.         text.c \
  65.         warshall.c \
  66.         yylex.c
  67.  
  68. all:        $(PROGRAM)
  69.  
  70. $(PROGRAM):     $(OBJS) $(LIBS)
  71.         @echo -n "Loading $(PROGRAM) ... "
  72.         @$(LINKER) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
  73.         @echo "done"
  74.  
  75. clean:;        @rm -f $(OBJS)
  76.  
  77. depend:;    @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
  78.  
  79. index:;        @ctags -wx $(HDRS) $(SRCS)
  80.  
  81. install:    $(PROGRAM)
  82.         @echo Installing $(PROGRAM) in $(DEST)
  83.         @install -s $(PROGRAM) $(DEST)
  84.  
  85. listing:;    @$(PRINT) Makefile $(HDRS) $(SRCS) byaccpar | lpr
  86.  
  87. lint:;        @lint $(SRCS)
  88.  
  89. program:        $(PROGRAM)
  90.  
  91. tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
  92.  
  93. update:        $(DEST)/$(PROGRAM)
  94.  
  95. $(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS)
  96.         @make -f $(MAKEFILE) DEST=$(DEST) install
  97. ###
  98. closure.o: /usr/include/stdio.h defs.h dep.h new.h gram.h
  99. conflicts.o: /usr/include/stdio.h defs.h dep.h new.h files.h gram.h state.h
  100. derives.o: /usr/include/stdio.h defs.h new.h gram.h
  101. error.o: /usr/include/stdio.h /usr/include/signal.h \
  102.     /usr/include/machine/trap.h defs.h files.h text.h symtab.h
  103. files.o: /usr/include/stdio.h files.h new.h
  104. genstates.o: /usr/include/stdio.h defs.h dep.h new.h gram.h state.h
  105. getargs.o: /usr/include/stdio.h defs.h files.h
  106. lalr.o: /usr/include/stdio.h defs.h dep.h gram.h new.h state.h
  107. main.o: /usr/include/stdio.h /usr/include/signal.h \
  108.     /usr/include/machine/trap.h dep.h files.h state.h symtab.h tokens.h \
  109.     text.h
  110. mkpar.o: /usr/include/stdio.h action.h defs.h dep.h files.h gram.h new.h \
  111.     state.h tokens.h text.h symtab.h
  112. new.o: defs.h
  113. nullable.o: /usr/include/stdio.h gram.h new.h
  114. optim.o: /usr/include/stdio.h defs.h dep.h gram.h new.h state.h
  115. output.o: /usr/include/stdio.h action.h defs.h dep.h new.h files.h gram.h \
  116.     state.h
  117. print.o: /usr/include/stdio.h action.h defs.h dep.h new.h files.h gram.h \
  118.     state.h
  119. reader.o: /usr/include/stdio.h defs.h dep.h files.h gram.h new.h symtab.h \
  120.     text.h tokens.h
  121. symtab.o: /usr/include/stdio.h defs.h new.h symtab.h tokens.h text.h
  122. text.o: /usr/include/stdio.h files.h new.h text.h
  123. warshall.o: dep.h
  124. yylex.o: /usr/include/stdio.h defs.h dep.h files.h new.h symtab.h text.h \
  125.     tokens.h
  126.